home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 42
/
Amiga Format AFCD42 (Issue 126, Aug 1999).iso
/
-serious-
/
graphics
/
raystorm
/
raystorm_ppc
/
arexx
/
simple.ray
< prev
Wrap
Text File
|
1999-05-17
|
744b
|
43 lines
/***************
* NAME: simple.ray
* DESCRIPTION: Tutorial: Simple Scene
* AUTHOR: Mike Hesser
***************/
signal on error
options results
IF ~show('P','RAYSTORM') THEN DO
address COMMAND 'run >NIL: <NIL: /RayStorm'
address COMMAND WaitForPort RAYSTORM
END
address RAYSTORM
'SETCAMERA <6,1.5,-1.5> <0,0,0> <0,1,0>'
'SETWORLD [30,30,255]'
'POINTLIGHT <30,50,30> [255,255,255] SHADOW'
'NEWSURFACE planesurf'
'DIFFUSE [155,0,0]'
'IMTEXTURE /textures/checker.itx <.1,.1,.1> <0,0,0> <2,2,2> 50 0 0'
'NEWSURFACE spheresurf'
'REFLECT [255,255,255]'
'SPHERE spheresurf <0,1,0> 1'
'PLANE planesurf'
'STARTRENDER'
'SAVEPIC simple.iff'
exit 0
error:
say "Error" rc "in line" sigl ":"
GETERRORSTR rc
say result
exit 0